
from django.conf.urls.defaults import *
from models import *
from views import *
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    (r'^accounts/login/$', sle_login),
    (r'^accounts/logout$', sle_logout),
    (r'^accounts/password/change/$',password_change),
    url(r'^change_password_ok$', password_change),
    
    
    (r'patient/create/$', create_patient),
    (r'patient/list/$', list_patient ),
    (r'patient/edit/(?P<id>[^/]+)/$', edit_patient),
    (r'patient/view/(?P<id>[^/]+)/$', view_patient),
    (r'patient/delete/(?P<id>[^/]+)$', del_patient),
    (r'patient/save/$', save_patient),
    (r'patient/checknumber/$', check_record),
    (r'patient/viewedit/(?P<id>[^/]+)/$', viewedit_patient), 
    
    (r'patient/update/$', update_patient),
    (r'incentive/update/$', update_Infection),
    (r'manifestation/update/$', update_Manifestation),
    (r'course/update/$', update_Course),
    (r'history/update/$', update_History),
    (r'physical/update/$', update_Physical),
    (r'standard/update/$', update_Standard),
    
    
    (r'follow/save/(?P<id>[^/]+)/$', save_follow),
    (r'essdai/save/$', save_essdai),
    (r'ssdi/save/$', save_ssdi),
    (r'ssddi/save/$', save_ssddi),
    (r'labfindings/save/$', save_labfindings),
    (r'follow/list/(?P<id>[^/]+)/$', list_follow ),
    (r'follow/delete/(?P<patientid>[^/]+)/(?P<id>[^/]+)/$', del_follow ),
    (r'follow/view/(?P<id>[^/]+)/$', view_follow ),
    (r'follow/updata_follow/(?P<id>[^/]+)/$', updata_follow ),
    (r'follow/updata_labfindings/(?P<id>[^/]+)/$', updata_labfindings ),
    (r'follow/updata_ssddi/(?P<id>[^/]+)/$', updata_ssddi ),
    (r'follow/updata_ssdi/(?P<id>[^/]+)/$', updata_ssdi ),
    (r'follow/updata_essdai/(?P<id>[^/]+)/$', updata_essdai ),
    (r'patient/search/$', search_patient ),
    (r'patientno/search/$', search_PatientNo ),
    (r'hospitalized/search/$', search_hospitalized ),
    (r'patient/chart/(?P<id>[^/]+)/$', patient_chart ),
    (r'patients/chart/$', patients_chart ),
    (r'test/chart/$', comprehensive_chart ),
    
    
    (r'ssdi/chart/$', ssdi_chart ),
    (r'ssddi/chart/$', ssddi_chart ),
    (r'essdai/chart/$', essdai_chart ),
    (r'esspri/chart/$', esspri_chart ),
    (r'pcs/chart/$', pcs_chart ),
    (r'mcs/chart/$', mcs_chart ),
    
    
    
    (r'patientno/create/$', create_patientno),
    (r'patientno/list/$', list_patientno ),
    (r'patientno/edit/(?P<id>[^/]+)/$', edit_patientno),
    (r'patientno/view/(?P<id>[^/]+)/$', view_patientno),
    
    (r'hospitalized/create/$', create_hospitalized),
    (r'hospitalized/list/$', list_hospitalized ),
    (r'hospitalized/edit/(?P<id>[^/]+)/$', edit_hospitalized),
    (r'hospitalized/view/(?P<id>[^/]+)/$', view_hospitalized),
    
    (r'infection/save/$', save_Infection),
    (r'manifestation/save/$', save_Manifestation),
    (r'course/save/$', save_Course),
    (r'history/save/$', save_History),
    (r'physical/save/$', save_Physical),
    (r'standard/save/$', save_Standard),
    
)
